<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // passthru函数采用 rest 参数的写法如下。
        // passthru函数采用 rest 参数的写法如下。
        function passthru(literals, ...values) {
            let output = "";
            let index;
            for (index = 0; index < values.length; index++) {
                output += literals[index] + values[index];
            }

            output += literals[index]
            return output;
        }

        // 
    </script>
</body>

</html>